<?php
/**
 * Pagina de Inicio
 *
 * inicio.php
 * @author Hector Ruiz
 * @version 1.0
 * @copyright Hector Ruiz, 13 Noviembre, 2011
 * @package default
 **/

class Inicio extends CI_Controller {
    
    public function __construct() {
        parent::__construct();

        $this->load->model("menu_model");
        //Only allow logged in users to access this controller
        if($this->session->userdata('logged_in') == FALSE) redirect('login');
    }

    function index() {
        $data = $this->menu_model->general("Inicio");
        $data['content_html'] = "<strong>Bienvenido:</strong>".nbs(1).$this->session->userdata('real_name');
        $data['app_menu'] = "";
        $this->load->view('template', $data);
    }
}        

/* end of file */
